package com.ruoyi.mas.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mas.mapper.MasPayMapper;
import com.ruoyi.mas.domain.MasPay;
import com.ruoyi.mas.service.IMasPayService;

/**
 * 薪资信息Service业务层处理
 * 
 * @author xiaotang
 * @date 2022-03-22
 */
@Service
public class MasPayServiceImpl implements IMasPayService 
{
    @Autowired
    private MasPayMapper masPayMapper;

    /**
     * 查询薪资信息
     * 
     * @param id 薪资信息主键
     * @return 薪资信息
     */
    @Override
    public MasPay selectMasPayById(Long id)
    {
        return masPayMapper.selectMasPayById(id);
    }

    /**
     * 查询薪资信息列表
     * 
     * @param masPay 薪资信息
     * @return 薪资信息
     */
    @Override
    public List<MasPay> selectMasPayList(MasPay masPay)
    {
        return masPayMapper.selectMasPayList(masPay);
    }

    /**
     * 新增薪资信息
     * 
     * @param masPay 薪资信息
     * @return 结果
     */
    @Override
    public int insertMasPay(MasPay masPay)
    {
        return masPayMapper.insertMasPay(masPay);
    }

    /**
     * 修改薪资信息
     * 
     * @param masPay 薪资信息
     * @return 结果
     */
    @Override
    public int updateMasPay(MasPay masPay)
    {
        return masPayMapper.updateMasPay(masPay);
    }

    /**
     * 批量删除薪资信息
     * 
     * @param ids 需要删除的薪资信息主键
     * @return 结果
     */
    @Override
    public int deleteMasPayByIds(Long[] ids)
    {
        return masPayMapper.deleteMasPayByIds(ids);
    }

    /**
     * 删除薪资信息信息
     * 
     * @param id 薪资信息主键
     * @return 结果
     */
    @Override
    public int deleteMasPayById(Long id)
    {
        return masPayMapper.deleteMasPayById(id);
    }
}
